/*
 * @Copyright: Copyright (c) 2030 吴周海
 * @Author: wzh200x@126.com
 * @Date: 2025-10-15 18:45:50
 * @LastEditors: wzh200x@126.com
 * @LastEditTime: 2025-10-20 13:51:58
 * @FilePath: \gogamewebserver\goGameWebServer\internal\defines\platform\platform.go
 * @Description: 文件功能描述
 */
package platform

const (
	PLATRFORM_NORMAL = iota
	WeChatGame       // 微信
	AliPayGame       // 支付宝
	ByteJumpGame     // 字节跳动
	AliPayBaBaGame   // 支付宝(芭芭农场)
	KuaiShouGame     // 快手
	VivoGame         //  vivo
	OppoGame         //  oppo
	XiaoMiGame       // 小米
	HuaWeiGame       // 华为
	PLATFORM_MAX
)

func GetPlatformName(platformId int) string {
	switch platformId {
	case PLATRFORM_NORMAL:
		return "通用平台"
	case WeChatGame:
		return "微信小游戏"
	case AliPayGame:
		return "支付宝小游戏"
	case ByteJumpGame:
		return "字节跳动小游戏"
	case AliPayBaBaGame:
		return "支付宝(芭芭农场)"
	case KuaiShouGame:
		return "快手小游戏"
	case VivoGame:
		return "vivo小游戏"
	case OppoGame:
		return "oppo小游戏"
	case XiaoMiGame:
		return "小米小游戏"
	case HuaWeiGame:
		return "华为小游戏"
	default:
		return "未知平台"
	}
}

func GetPlatformFlag(platformId int) string {
	switch platformId {
	case PLATRFORM_NORMAL:
		return "normal"
	case WeChatGame:
		return "wechat"
	case AliPayGame:
		return "alipay"
	case ByteJumpGame:
		return "bytedance"
	case AliPayBaBaGame:
		return "alipay_baba"
	case KuaiShouGame:
		return "kuaishou"
	case VivoGame:
		return "vivo"
	case OppoGame:
		return "oppo"
	case XiaoMiGame:
		return "xiaomi"
	case HuaWeiGame:
		return "huawei"
	default:
		return "unknown"
	}
}
